package item;

import static javax.persistence.GenerationType.SEQUENCE;

import java.awt.event.ItemListener;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.OneToOne;
import javax.persistence.SequenceGenerator;



public class itsProjects {
	

	private int id;
	
	public String nameproject;
	
	
	private List<itsItem> itemsList = new ArrayList<itsItem>();
	
	
	
	private List<itsTeams> teamsList = new ArrayList<itsTeams>();
	
	private String itemTypeList[];
	
	
	private List<itsUsers> projectsUsersList = new ArrayList<itsUsers>();
	
	
	private String projectDescription;
	
	
	public itsProjects(){
		
	}
	
	
	
	public void addNameToProjects(String name){
		nameproject = name;
	}
	
	public String getProjectName() {
		    return nameproject;
	}
	public void addItem(itsItem i){
		itemsList.add(i);
	}
	public void addTeam(itsTeams t){
		teamsList.add(t);
	}
	public List<itsTeams> getTeams(){
		return this.teamsList;
	}
}
